import request from "@/utils/request";



/**
 * 随机试卷添加规则
 * @param data
 * @returns {AxiosPromise}
 */
export function save(data) {
  return request({
    url: '/api/ts/examination_paper_rule/save',
    method: 'post',
    data
  })
}

/**
 * 随机试卷删除规则
 * @param data
 * @returns {AxiosPromise}
 */
export function deleteRule(data) {
  return request({
    url: '/api/ts/examination_paper_rule/delete',
    method: 'post',
    data
  })
}

/**
 * 随机试卷规则列表
 * @param data
 * @returns {AxiosPromise}
 */
export function list(data) {
  return request({
    url: '/api/ts/examination_paper_rule/list',
    method: 'post',
    data
  })
}


